#ifndef goldfish_CHUNK_API_H
#define goldfish_CHUNK_API_H
#include <asm-arm/io.h>
#include "yaffs_guts.h"
#include "yaffs_packedtags2.h"
int Goldfish_Chunk_EreaseBlock(struct yaffs_DeviceStruct * dev, int block_index);
int Goldfish_Chunk_Initialize(struct yaffs_DeviceStruct * dev);
int Goldfish_Chunk_WriteChunk(struct yaffs_DeviceStruct * dev, int chunk_index, const __u8 * data, const yaffs_ExtendedTags * tags);
int Goldfish_Chunk_ReadChunk(struct yaffs_DeviceStruct * dev, int chunk_index, __u8 * data,  yaffs_ExtendedTags * tags);
int Goldfish_Chunk_MarkBadBlock(struct yaffs_DeviceStruct * dev, int block_index);
int Goldfish_Chunk_QueryBlock(struct yaffs_DeviceStruct * dev, int block_index, yaffs_BlockState * state, __u32 * seq_num);

#endif
